package com.chuantou.yuba.api.to;

import com.google.gson.annotations.SerializedName;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 动态图片TO
 * 
 * @author dl1001
 * 
 */
public class TrendsImageTO implements Parcelable {
	// 图片ID
	@SerializedName("id")
	private Long id;
	// 动态ID
	@SerializedName("feed_id")
	private Long trendsId;
	// 图片地址
	@SerializedName("path")
	private String image;
	// 图片高度
	@SerializedName("height")
	private int height;
	// 图片宽度
	@SerializedName("width")
	private int width;

	public TrendsImageTO() {

	}

	public TrendsImageTO(Parcel source) {
		// TODO 需要时序列化
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO 需要时序列化
	}

	public static final Creator<TrendsImageTO> CREATOR = new Creator<TrendsImageTO>() {

		@Override
		public TrendsImageTO[] newArray(int size) {
			return new TrendsImageTO[size];
		}

		@Override
		public TrendsImageTO createFromParcel(Parcel source) {
			return new TrendsImageTO(source);
		}
	};

	public Long getId() {
		return id == null ? 0 : id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getTrendsId() {
		return trendsId == null ? 0 : trendsId;
	}

	public void setTrendsId(Long trendsId) {
		this.trendsId = trendsId;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

}
